// BeanDefinition.java
package mini.spring.core;
public class BeanDefinition {
    private Class<?> beanClass;
    private String scope = "singleton";
    private String beanName;

    public BeanDefinition(Class<?> beanClass, String beanName) {
        this.beanClass = beanClass;
        this.beanName = beanName;
    }

    public Class<?> getBeanClass() { return beanClass; }
    public String getScope() { return scope; }
    public void setScope(String scope) { this.scope = scope; }
    public String getBeanName() { return beanName; }
    public boolean isSingleton() { return "singleton".equals(scope); }
}
